package com.github.ghsea.cc.module;

import java.util.Date;

public class NginxAccessLog {
	private String accessIp;

	private Date accessTime;

	private String requestHost;

	private String requestUrl;

	private int responseCode;

	private String referer;

	private String userAgent;

	private String cookie;

	public String getAccessIp() {
		return accessIp;
	}

	public void setAccessIp(String accessIp) {
		this.accessIp = accessIp;
	}

	public Date getAccessTime() {
		return accessTime;
	}

	public void setAccessTime(Date accessTime) {
		this.accessTime = accessTime;
	}

	public String getRequestUrl() {
		return requestUrl;
	}

	public void setRequestUrl(String requestUrl) {
		this.requestUrl = requestUrl;
	}

	public int getResponseCode() {
		return responseCode;
	}

	public void setResponseCode(int responseCode) {
		this.responseCode = responseCode;
	}

	public String getReferer() {
		return referer;
	}

	public void setReferer(String referer) {
		this.referer = referer;
	}

	public String getUserAgent() {
		return userAgent;
	}

	public void setUserAgent(String userAgent) {
		this.userAgent = userAgent;
	}

	public String getCookie() {
		return cookie;
	}

	public void setCookie(String cookie) {
		this.cookie = cookie;
	}

	public String getRequestHost() {
		return requestHost;
	}

	public void setRequestHost(String requestHost) {
		this.requestHost = requestHost;
	}

	public String toString() {
		StringBuffer sb = new StringBuffer(300);
		sb.append("[").append("accessIp=").append(accessIp).append(",accessTime=").append(accessTime)
				.append(",requestHost=").append(requestHost).append(",requestUrl=").append(requestUrl)
				.append(",responseCode=").append(responseCode).append(",referer=").append(referer)
				.append(",userAgent=").append(userAgent).append(",cookie=").append(cookie).append("]");

		return sb.toString();
	}

}
